package com.zzx.boot.config;

import com.google.gson.Gson;
import com.zzx.boot.Application;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/7 17:18
 */
@Configuration
public class BeansConfig {

    @Bean(name="gson")
    public Gson createGson(){
        return new Gson();
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}

